<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<script type="text/javascript" src="__JS__/jianfanzhuanhuan.js"></script>
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('doimgs')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">
<tr>
	<td width="11%" class="infoBoxTd">所属分类：</td>
	<td colspan="2">
		<select name="fid">
			<volist name="fenlei" id="fenlei">
			<option value="{$fenlei.id}" <eq name="fenlei.id" value="$fid">selected</eq>>{$fenlei.name}</option>
			</volist>
		</select>
	</td>
</tr>

<tr>
<td width="11%" class="infoBoxTd">名称：</td>
<td colspan="2"><input type="text" name="name" value="{$name}" />
</td>
</tr>
<tr>
<td width="11%" class="infoBoxTd">简介：</td>
<td colspan="2"><input type="text" name="jianjie" value="{$jianjie}" />
</td>
</tr>


<tr>
	<td class="infoBoxTd">封面图：</td>
	<td colspan="2">
		<img id="img" src="<neq name='img' value=''>{$img}<else/>__PUBLIC__/images/nopic.gif</neq>" width="100" height="100" style="float:left;margin-right:20px;" />
		<div class="upimg-box">
			<div id="fileQueue"></div>
			<input id="file_upload_img" type="file" /><input name="img" type="hidden" value="{$img}" />
		</div>
		<div class="tj_xiangsu">
			推荐像素：318px * 318px
		</div>
	</td>
</tr>
<script>
//图片上传
$("#file_upload_img").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadifywushuiyinsuolue.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/imgs_img',
		'queueID'        : 'fileQueue',
		'sizeLimit'      :	2 * 1000 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="img"]').val(response);
			$('#img').attr('src', response);
		}
});

</script>


<tr>
	<td class="infoBoxTd">链接地址：</td>
	<td colspan="2">
	<INPUT name="url" value="{$url}" class="formTitle" size="80"  onblur="auto_save('url')" >
	</td>
</tr>


</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left">
	<php>
	if(!$state){
	</php>
		<input type="submit" name="Button1" value="提交审核" class="formInput01" />
	<php>
	}else{
	</php>
		<input type="submit" name="Button1" value="保存" class="formInput01" />
	<php>
	}
	</php>
</td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//表单验证
function checkform(){

}

</script>
    

<include file="Public:footer" />
